package com.halflife.framework.participant.range.util;

import com.halflife.framework.participant.range.RangeInfo;
import java.util.List;

public class Menu {

    private Integer menuid;
    private String icon;
    private String menuname;
    private String url;
    private List menus;
    private String type;
    private String validPath;

    /**
     * 构造器
     */
    public Menu(){}

    public Menu(RangeInfo rangeInfo){

        this.setMenuid(rangeInfo.getId());
        this.setIcon(rangeInfo.getIcon());
        this.setUrl(rangeInfo.getPathkey());
        this.setMenuname(rangeInfo.getRangeName());
        this.setType(rangeInfo.getRangeType());
        this.setValidPath(rangeInfo.getValidPath());

    }

    public Integer getMenuid() {
        return menuid;
    }

    public void setMenuid(Integer menuid) {
        this.menuid = menuid;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List getMenus() {
        return menus;
    }

    public void setMenus(List menus) {
        this.menus = menus;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMenuname() {
        return menuname;
    }

    public void setMenuname(String menuname) {
        this.menuname = menuname;
    }

    public String getValidPath() {
        return validPath;
    }

    public void setValidPath(String validPath) {
        this.validPath = validPath;
    }
}
